<?php


namespace app\controller;


use app\service\RoomService;
use think\response\Json;

class RoomController extends BasicController
{
    protected RoomService $roomService;
    public function initialize()
    {
        $this->roomService = new RoomService();
    }

    /**
     * 获取房间号列表(数组)
     * @return Json
     */
    public function getRoomIdList() :Json{
        $roomList = $this->roomService->getRoomIdList();
        return returnJson(200,"成功",$roomList);
    }
}